#ifndef LISOUNDTHREAD_H
#define LISOUNDTHREAD_H

#include <QObject>
#include <QThread>
#include <QEventLoop>
#include "lisoundlisten.h"


class LisoundThread : public QThread
{
    Q_OBJECT
public:
    explicit LisoundThread(QObject *parent = 0);
    Q_INVOKABLE void setControlSample(bool isSample)
    {
        qDebug()<<"打扰一下";
        soundListen->setControlSampleMaxSoundeSize (isSample);
    }



protected:
    void run();

signals:
    void appearManSound();
    void sampleOver(int sampleValue);

public slots:
    void slots1(){qDebug()<<"我就想知道你是不是逗我~1";}
    void slots2(int keke){qDebug()<<u8"我就想知道你是不是逗我~2"<<"  "<<QString::number (keke);}
private:
    LiSoundListen * soundListen;

};

#endif // LISOUNDTHREAD_H
